LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE := main

SDL_PATH := $(LOCAL_PATH)/../../../../extern/SDL2
JNI_PATH := ../



# Add any compilation flags for your project here...
LOCAL_CFLAGS := \
	-fexceptions \
	-frtti \
	-Wno-deprecated

LOCAL_CPP_EXTENSION := .cpp

LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../../../demos/mt5 \
$(LOCAL_PATH)/../../../../src \
$(LOCAL_PATH)/../../../../extern/freetype/include \
$(LOCAL_PATH)/../../../../extern \
$(LOCAL_PATH)/../../../../extern/SDL2/include \


LOCAL_STATIC_LIBRARIES := gnustl_static game sleipner_all jpeg png freetype SDL2
LOCAL_SHARED_LIBRARIES := prebuild_bass 


LOCAL_SRC_FILES := $(subst $(LOCAL_PATH)/,, \
$(SDL_PATH)/src/main/android/SDL_android_main.c \
$(LOCAL_PATH)/../../../../demos/mt5/main.cpp)


LOCAL_LDLIBS := -ldl -lGLESv1_CM -lGLESv2 -llog -lz

include $(BUILD_SHARED_LIBRARY)
